package com.handinglian.ai.common.util;

import org.springframework.context.annotation.Configuration;

import java.util.ResourceBundle;

@Configuration
public class PropertyUtil {

    public static String getProperty(String filePath, String key){
        //test为属性文件名，放在包com.mmq下，如果是放在src下，直接用test即可
        ResourceBundle resource = ResourceBundle.getBundle(filePath);
        String value = resource.getString(key);
        return value;
    }
}
